<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents"></div>
            <h1><?php echo $this->PageTitle;?></h1>
            <div class="clear"></div>
        </div>
        <div class="block-fluid">
            <?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'user-form',
				'enableAjaxValidation'=>true,
				'htmlOptions' => array('enctype'=>'multipart/form-data'),
			));
			?>
			<div class="row-form">
            <div class="span3">Logo:</div>
            <div class="span9">
				<a class="fancybox" rel="group" href="<?php echo Yii::app()->baseUrl.'/upload/images/'.$model->logo;?>" style="margin: 26px;"><img src="<?php echo Yii::app()->baseUrl.'/upload/images/'.$model->logo;?>" width="100" class="img-polaroid"></a>
				<?php echo $form->fileField($model, 'logo'); ?>
				<?php echo $form->error($model, 'logo'); ?>
			</div>
            <div class="clear"></div>
			</div>
			
			<div class="row-form">
            <div class="span3">Mô tả trang:</div>
            <div class="span9">
				<?php echo $form->textArea($model,'description'); ?>
				<?php echo $form->error($model,'description'); ?>
			</div>
            <div class="clear"></div>
			</div>
			<?php foreach($model->attributes as $key => $value):?>
				<?php if($key == 'logo' || $key =='description' || $key =='id') continue;?>
				<div class="row-form">
                <div class="span3"><?php echo $label[$key];?>:</div>
                <div class="span9">
					<?php echo $form->textField($model,$key); ?>
					<?php echo $form->error($model,$key); ?>
				</div>
                <div class="clear"></div>
            </div> 
			<?php endforeach;?>
			<div class="row-form">
				<?php echo CHtml::submitButton('Cập nhật',array('class'=>'btn btn-large')); ?>
				<div class="clear"></div>
            </div>          
        <?php $this->endWidget(); ?>
        </div>
    </div>
    
</div>